<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dashboard - Admin Template</title>
<?php 
echo $this->headLink()->appendStylesheet(OP_Util::publicUrl("assets/admin/css/theme.css"));
echo $this->headLink()->appendStylesheet(OP_Util::publicUrl("assets/admin/css/style.css"));
?>
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="/assets/admin/css/' + StyleFile + '">');
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
</head>

<body>
<div id="container">
  <div id="header">
    <h2>My eCommerce Admin area</h2>
    <div id="topmenu"> 
        <?php echo $this->navigation()->menu()->setPartial("_topmenu.phtml")->render();  ?> 
    </div>
  </div>
  <div id="top-panel">
    <div id="panel">
      <?php echo $this->navigation()->menu()->setPartial("_secondmenu.phtml")->render();?>
    </div>
  </div>
  <div id="wrapper">
    <div id="content">
		<?php foreach ((array)$this->flashMessages as $message): ?>
  			<p><font style="color:#FF0000"><?php echo $message;?></font></p><br/>
  		<?php endforeach;?>
    	<?php echo $this->layout()->content;?>
    </div>
    <div id="sidebar"> <?php echo $this->partial("_sidebar.phtml");?> </div>
  </div>
  <div id="footer">
    <div id="credits"> Template by <a href="http://www.bloganje.com">Bloganje</a> </div>
    <div id="styleswitcher">
      <ul>
        <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li>
        <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li>
        <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li>
        <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li>
        <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li>
        <li><a href="javascript: document.cookie='theme=5'; window.location.reload();" title="Mix" id="defswitch">m</a></li>
      </ul>
    </div>
    <br />
  </div>
</div>
</body>
</html>
